import Router from 'koa-router';
import Login from './controller/loginCtl';
import Orders from './controller/ordersCtl';
import Goods from './controller/goodsCtl';
import Shevles from './controller/shelvesCtl';
import Build from './controller/buildCtl';

let router = new Router();

router.post('/api/login', Login.loginRequest);
router.get('/logout', Login.logout);
router.get('/api/orders', Orders.getOrders);
router.get('/api/goods', Goods.getGoods);
router.get('/api/shelves', Shevles.getShelves);
router.get('/api/build', Build.getBuild);
// router.get('/login', Login.loginRequest)
export default router;
